<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>数据集成平台</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css" th:src="@{/static/bootstrap/css/bootstrap.min.css}">
    <script src="/static/bootstrap/js/jquery-3.6.0.min.js" th:src="@{/static/bootstrap/js/jquery.min.js}"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js" th:src="@{/static/bootstrap/js/bootstrap.min.js}"></script>
    <!-- bootstrap-table -->
    <link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.css">
    <script src="https://unpkg.com/bootstrap-table@1.18.3/dist/bootstrap-table.min.js"></script>

    <!--<script src="/bootstrap-table/dist/bootstrap-table.js"></script>-->
    <!--<script src="/bootstrap-table/dist/locale/bootstrap-table-zh-CN.js"></script>-->
</head>
<body>

<!-- 导航栏 -->
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#"></a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li><a href="/static/image/logofina.png" ><img src="/static/image/logofina.png" th:src="@{/static/image/logofina.png}" alt="" class="img1" height="40" width="100" /></a></li>
                <li class="active"><a href="/home">首页</a></li>
                <li><a  onclick="getData('select_pcqs11')">事件抽取源数据文件展示</a></li>
                <li><a  onclick="">进行事件抽取</a></li>
            </ul>
        </div>
    </div>
</nav>
<!--主要内容 -->

图片转文本
<form class="form-signin" th:action="@{/convert/Image2Text}" method="post" enctype="multipart/form-data">
    <p><input type="file" name="myFile"/></p>
    <p><input type="submit" value="上传"/></p>
    <p style="color: red" th:text="${result_image}" th:if="${not #strings.isEmpty(result_image)}"></p>
</form>

视频转音频
<form class="form-signin" th:action="@{/convert/audio2Video}" method="post" enctype="multipart/form-data">
    <p><input type="file" name="myFile"/></p>
    <p><input type="submit" value="上传"/></p>
    <p style="color: red" th:text="${result_video}" th:if="${not #strings.isEmpty(result_video)}"></p>
</form>

音频转文本
<form class="form-signin" th:action="@{/convert/video2Text}" method="post" enctype="multipart/form-data">
    <p><input type="file" name="myFile"/></p>
    <p><input type="submit" value="上传"/></p>
    <p style="color: red" th:text="${result_text}" th:if="${not #strings.isEmpty(result_text)}"></p>
</form>

<br />
</body>

<script type="text/javascript">
    var result_image = [[${result_image}]];

</script>

</html>
